#pragma once

#ifndef INT64_C
#define INT64_C(c) (c ## LL)
#define UINT64_C(c) (c ## ULL)
#endif

extern "C"
{
#include <libavutil/imgutils.h>
#include <libavutil/opt.h>
#include <libavcodec/avcodec.h>
#include <libavutil/audioconvert.h>
#include <libavutil/mathematics.h>
#include <libavutil/samplefmt.h>
}
class YUV420PWrite
{
public:
	YUV420PWrite(void);
	~YUV420PWrite(void);

	void Start();
	void YUVWrite( char* buf );
	void Stop();

	void SetFileName( char* fileName );

private:
	char _fileName[ 256 ];
	FILE*    _yuvfile;
	uint8_t* _yuvvideoBuffer;
};
